package com.zehua.controller;

import com.zehua.entity.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.zehua.service.CustomerService;

import javax.annotation.Resource;

@Controller
@RequestMapping("/cus")
public class CustomerController {

    @Resource
    private CustomerService customerService;

    @RequestMapping("/customerReg")
    public String customerReg(Customer customer) {
        customerService.customerReg(customer);
        return "index";
    }

}
